import { useUserStore } from '@/store/user/user'

const baseURL =
  import.meta.env.MODE === 'development'
    ? import.meta.env.VITE_APP_DEV_WEB_URL
    : import.meta.env.VITE_APP_PROD_WEB_URL
const uploadFileUrl = baseURL + '/api-file/files-anon'
const uploadFileHeader = () => {
  return { Authorization: 'Bearer ' + useUserStore().getToken }
}

export { uploadFileUrl, uploadFileHeader }
